Put the files "dynamics_solver.m", "dynamics_animation.m", and "tubeplot.m" in a shared folder. 
First run the Matlab code "dynamics_solver.m" to calculate the flagellar waveforms and to visualize the graphs in Figure 7.
Then, within the same Matlab workspace, run "dynamics_animation.m" to visualize a 3d animation of the calculated flagellar waveforms.